#Copyright (c) Microsoft. All rights reserved.
#Licensed under the MIT license. See LICENSE file in the project root for full license information.

#unit tests
if(${run_unittests})
   add_subdirectory(log_context_property_basic_types_ut)
   add_subdirectory(log_context_property_bool_type_ut)
   add_subdirectory(log_context_property_type_ascii_char_ptr_ut)
   add_subdirectory(log_context_property_type_if_ut)
   add_subdirectory(log_context_property_type_struct_ut)
   add_subdirectory(log_context_property_type_wchar_t_ptr_ut)
   add_subdirectory(log_context_ut)
   add_subdirectory(log_internal_error_ut)
   add_subdirectory(log_internal_error_with_abort_ut)
   add_subdirectory(log_sink_console_ut)
   add_subdirectory(logger_ut)
   add_subdirectory(logger_abort_ut)
   if(WIN32)
       add_subdirectory(format_message_no_newline_ut)
       add_subdirectory(log_sink_etw_ut)
       add_subdirectory(log_sink_etw_2_ut)
       add_subdirectory(log_sink_etw_without_init_ut)
       add_subdirectory(log_lasterror_ut)
       add_subdirectory(log_hresult_ut)
       add_subdirectory(log_errno_win32_ut)
   else()
       add_subdirectory(log_errno_linux_ut)
   endif()
endif()

if(${run_int_tests})
   add_subdirectory(log_errno_int)
   add_subdirectory(log_context_property_basic_types_int)
   add_subdirectory(log_context_property_bool_type_int)
   add_subdirectory(log_context_property_type_ascii_char_ptr_int)
   add_subdirectory(log_context_property_type_wchar_t_ptr_int)
   add_subdirectory(log_sink_console_int)
   if(WIN32)
       add_subdirectory(format_message_no_newline_int)
       add_subdirectory(log_sink_etw_int)
       add_subdirectory(log_lasterror_int)
       add_subdirectory(log_hresult_int)
       add_subdirectory(get_thread_stack_int)
   endif()
   add_subdirectory(logger_int)
endif()

if(${run_perf_tests})
   if(WIN32)
       add_subdirectory(logger_perf)
   endif()
endif()
